package com.ynhenc.comm;

public class NetAddr {
	
	public NetAddr( String hostName, int portNo ) {
		this.hostName = hostName;
		this.portNo = portNo;
	}
	
	public String getHostName() {
		return hostName;
	}
	
	private void setHostName(String hostName) {
		this.hostName = hostName;
	}
	
	public int getPortNo() {
		return portNo;
	}
	
	private void setPortNo(int portNo) {
		this.portNo = portNo;
	}
	
	public String toString() {
		return "hostName:" + this.hostName + ", portNo:" + portNo;
	}
	
	private String hostName = "" ;
	private int portNo;
}
